/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package astroim.smack;

/**
 *
 * @author alykhalid
 */
public class Credentials {

    private String UserName, Password, Host, ServiceName;
    private int Port;

    public String getHost() {
        return Host;
    }

    private void setHost(String Host) {
        this.Host = Host;
    }

    public String getPassword() {
        return Password;
    }

    public void setPassword(String Password) {
        this.Password = Password;
    }

    public int getPort() {
        return Port;
    }

    private void setPort(int Port) {
        this.Port = Port;
    }

    public String getServiceName() {
        return ServiceName;
    }

    private void setServiceName(String ServiceName) {
        this.ServiceName = ServiceName;
    }

    public String getUserName() {
        return UserName;
    }

    public void setUserName(String UserName) {
        this.UserName = UserName;
    }

    private Credentials() {
        this.setHost("talk.google.com");
        this.setPort(5222);
        this.setServiceName("gmail.com");
    }

    public static Credentials getInstance() {
        return CredentialsHolder.INSTANCE;
    }

    private static class CredentialsHolder {
        private static final Credentials INSTANCE = new Credentials();
    }
 }
